{:W('Template/top')}
<div class="wrapper clearfix content" style="position: relative;border: 1px solid #ddd">
    {:W('Template/left')}
    <div class="rightbox pull-right">
        <div class="ur-here">您当前的位置：<a href="#">账户调整管理</a>&gt;账户调整列表</div>
        <div class="cTitle2">账户调整列表</div>
        <div class="main-search" style="margin-bottom: 28px">
            <div class="top clearfix">
                <form method="get" action="{:U('Refund/index',array('id'=>I('get.id')))}" class="form-inline">
                    <div class="form-group">
                        <input type="text" class="form-control" name="names" placeholder="请输入姓名"/>
                    </div>
                    <button type="submit" class="btn btn-warning">查询</button>
                </form>
            </div>

            <form class="form-inline pull-right">
                <input type="hidden" id="code" value="{$Think.session.checkRefundCode}">
                <input id="chkState" type="hidden" value="{:U('Refund/index')}"/>
            </form>
        </div>
        <form method="post" action="">
            <table class="cTable table-hover" width="100%">
                <tr>
                    <th width='8%'>编号</th>
                    <th width='10%'>姓名</th>
                    <th width='10%'>实体类型</th>
                    <th width='12%'>账户类型</th>
                    <th width='15%'>金额</th>
                    <th width='15%'>凭证</th>
                    <th width='15%'>状态</th>
                    <th width='15%'>备注</th>
                    <th width="12%">操作</th>
                </tr>
                <volist name='info' id='v'>
                    <tr>
                        <td>{$v.id}</td>
                        <td>{$v.entity_name}</td>
                        <td>
                            <if condition="$v['entity_type'] eq 4">
                                <span>代理商</span>
                                <elseif condition="$v['entity_type'] eq 3"/>
                                <span>供应商</span>
                                <elseif condition="$v['entity_type'] eq 2"/>
                                <span>运营商</span>
                                <elseif condition="$v['entity_type'] eq 5"/>
                                <span>运营商</span>
                                <elseif condition="$v['entity_type'] eq 1"/>
                                <span>平台商</span>
                            </if>
                        </td>
                        <td>
                            <if condition="$v['account_type'] eq 4">
                                <span class='text-c1'>代理商</span>
                                <elseif condition="$v['account_type'] eq 3"/>
                                <span class='text-c5'>供应商</span>
                                <elseif condition="$v['account_type'] eq 2"/>
                                <span class='text-c3'>运营商账户余额</span>
                                <elseif condition="$v['account_type'] eq 5"/>
                                <span class='text-c3'>运营商账户充值</span>
                                <elseif condition="$v['account_type'] eq 6"/>
                                <span class='text-c3'>平台商机票授信</span>
                            </if>
                        </td>
                        <td id="money-right" class='text-c5'>{$v.amount|GetYuan}</td>
                        <td class="text-c1">{$v.proof}</td>

                        <td>
                            <if condition="$v.state eq 1">
                                <span style="color:blue">已提交,待审核</span>
                                <elseif condition="$v.state eq 2"/>
                                <span style="color:darkgreen">已审核</span>
                                <elseif condition="$v.state eq 3"/>
                                <span style="color:red">已拒绝</span>
                            </if>
                        </td>
                        <td class="text-c1">{$v.memo}</td>
                        <td>
                            <div class="btn-group">
                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
                                        aria-expanded="false">
                                    操作<span class="caret"></span>
                                </button>
                                <if condition="$v['state'] eq 1">
                                    <ul class="dropdown-menu" role="menu">
                                        <li><a href="javascript:void(0)"
                                               onclick="changeRefundState({$v.id}, '{$v.id|setEncrypt}', '{:Common\\Top::ApplyStatePass}')">已审核</a>
                                        </li>
                                        <li><a href="javascript:void(0)"
                                               onclick="changeRefundState({$v.id}, '{$v.id|setEncrypt}', '{:Common\\Top::ApplyStateReject}')">拒绝</a>
                                        </li>
                                    </ul>
                                    <else/>
                                </if>

                            </div>
                        </td>
                    </tr>
                </volist>
            </table>
        </form>
        <notempty name="info">
            <div class="pagebox">
                {$page}
            </div>
        </notempty>
    </div>
</div>

{:W('Template/bottom')}

</body>
</html>